package com.thinkfit.jy.adapter;

import android.annotation.SuppressLint;
import android.content.Context;

import com.blankj.utilcode.util.AppUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.thinkfit.jy.R;

import org.jetbrains.annotations.NotNull;


public class AppAdapter extends BaseQuickAdapter<AppUtils.AppInfo, BaseViewHolder> {

    private Context mContext;

    public AppAdapter(Context context) {
        super(R.layout.item_app);
        mContext = context;
    }


    @SuppressLint("MissingPermission")
    @Override
    protected void convert(@NotNull BaseViewHolder helper, AppUtils.AppInfo bean) {
        helper.setImageDrawable(R.id.ivIcon, bean.getIcon());
    }


}
